@echo off

for /F %%i in ('type list.txt') do (
  if exist "%%i\tests\001" ( 
    echo 3 : %%i 
  ) else (
    echo - : %%i 
  )
)

